package com.zspringboot.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zspringboot.demo.entity.RoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单关系表 Mapper 接口
 * </p>
 *
 * @author laolang
 * @since 2024-03-01
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

//    @Delete("delete from sys_role_menu where role_id = #{roleId}")
    void deleteRoleId(@Param("roleId") Integer roleId);

    List<Integer> selectByRoleId(@Param("roleId") Integer roleId);
}
